package org.roulette.model;

import javax.xml.bind.annotation.*;
@XmlRootElement(name = "player")
@XmlAccessorType(XmlAccessType.FIELD)
public class Player {

	private String name;
	@XmlTransient
	private String passwordHash;
	private int stack;

	public Player() {

	}

	public Player(String name, String password) {
		this(name, 500, password);
	}

	public Player(String name, int stack, String passwordHash) {
		this.name = name;
		this.stack = stack;
		this.passwordHash = passwordHash;
	}

	public String getName() {
		return name;
	}

	public String getPasswordHash() {
		return passwordHash;
	}

	public int getStack() {
		return stack;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setPasswordHash(String passwordHash) {
		this.passwordHash = passwordHash;
	}

	public void setStack(int stack) {
		this.stack = stack;
	}

}
